<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommunityDatasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('community_datas', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('community_id')->unsigned()->comment('小区id');
            $table->string('apartment')->comment('成交户型');
            $table->float('area')->comment('面积');
            $table->float('price')->comment('价格');
            $table->string('signing_time')->comment('签约时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('community_datas');
    }
}
